package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel
public class BannerUpdateDTO {

    @NotNull(message = "主键不可以为空")
    @Range(min = 1, message = "主键为大于或等1的正整数")
    @ApiModelProperty(value = "主键不可以为空")
    private Integer id;

    @NotBlank(message = "banner名称不可以为空")
    @Length(min = 1, max = 80, message = "banner名称长度需要在1-80个字之间")
    @ApiModelProperty(value = "banner名称")
    private String bannerName;

    @NotBlank(message = "banner图片的url不可以为空")
    @Length(min = 1, max = 100, message = "banner图片的url的长度需要在1-100个字之间")
    @ApiModelProperty(value = "banner图片的url")
    private String bannerImageUrl;

    @Length(min = 0, max = 100, message = "banner图片链接的url的长度需要在0-100个字之间")
    @ApiModelProperty(value = "banner图片链接的url")
    private String bannerLink;

    @NotNull(message = "轮播图类型不能为空")
    @Range(min = 1,max = 2,message = "轮播图类型：1.产品知识页面，2.销售工具")
    @ApiModelProperty(value = "轮播图类型：1.产品知识页面，2.销售工具")
    private Integer bannerType;

    public BannerUpdateDTO() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBannerName() {
        return bannerName;
    }

    public void setBannerName(String bannerName) {
        this.bannerName = bannerName;
    }

    public String getBannerImageUrl() {
        return bannerImageUrl;
    }

    public void setBannerImageUrl(String bannerImageUrl) {
        this.bannerImageUrl = bannerImageUrl;
    }

    public String getBannerLink() {
        return bannerLink;
    }

    public void setBannerLink(String bannerLink) {
        this.bannerLink = bannerLink;
    }

    public Integer getBannerType() {
        return bannerType;
    }

    public void setBannerType(Integer bannerType) {
        this.bannerType = bannerType;
    }
}
